package cn.kgc.controller;

import cn.kgc.dto.Dto;
import cn.kgc.service.FeignService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author:limengxian
 * @Date:Created in 2020/11/23 15:50
 */
@RestController
@RequestMapping("/p")
public class UserController {

    @Resource
    private FeignService feignService;
    @PostMapping("/login")
    public Dto login(String phone, String password){
        return feignService.login(phone,password);
    }



}
